#ifndef CDEMDATA_H
#define CDEMDATA_H

#include <iostream>
#include <string>
using namespace std ;

class CDemData {
private:
string sName;
  int iWidth,
      iHeight,
      iSize;
  short iMin,
        iMax;
  short *Data; // les donnees brutes
  short **MatData; // pour acceder en double indice

public:
  CDemData();
  ~CDemData() ;
  int getSize() ;
  int getWidth() ;
  int getHeight() ;
  short getMininum() ;
  short getMaximum() ;
  short& operator[](int _indice) ;
  short& refData (int _indiceWidth, int _indiceHeight);
  bool loadDem(string name, int _width, int _height) ;

};
#endif